//
//  ShapeLine.m
//  DemoConnectionBetweenShapes
//
//  Created by duc nguyen van on 8/22/11.
//  Copyright 2011 STU. All rights reserved.
//

#import "ShapeLine.h"


@implementation ShapeLine
@synthesize beginViewPoint,endViewPoint;

- (id)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code.
    }
    return self;
}


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code.
	CGContextRef contextRef = UIGraphicsGetCurrentContext();
	CGContextSetRGBStrokeColor(contextRef, 1.0, 0, 0, 1);
	CGContextMoveToPoint(contextRef, 0, rect.size.height / 2);
	CGContextAddLineToPoint(contextRef, rect.size.width, rect.size.height / 2);
	CGContextStrokePath(contextRef);
}


- (void)dealloc {
    [super dealloc];
}


@end
